package com.yanqu.road.server.cmd.unioncampwar;

import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.pb.worldmessage.WorldMessageProto;
import com.yanqu.road.server.cmd.CrossCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.manager.unioncampwar.CrossUnionCampWarMgr;
import com.yanqu.road.server.protocol.CrossProtocol;

@Cmd(code = CrossProtocol.C3_UNION_CAMP_WAR_CHAT, desc = "商帮聊天")
public class CrossUnionCampWarChatCmd extends CrossCommand {
    @Override
    public boolean parseData(YanQuMessage packet) throws Exception {
        return true;
    }

    @Override
    public void execute(YanQuMessage packet) throws Exception {
        WorldMessageProto.WorldMessageTempMsg reqMsg = WorldMessageProto.WorldMessageTempMsg.parseFrom(packet.getBytes());
        CrossUnionCampWarMgr.chat(packet.getPlayerId(), reqMsg);
    }

    @Override
    public void sendData() {

    }
}
